<script type="text/javascript">
    (function($){
        $(document).ready(function() {
            $(".pagination > a").click(function(e) {
                var href = $(this).attr('href');
                $("#frmpaging").attr('action', href);
                $("#frmpaging").submit();
                e.preventDefault();
            }); 
            
            $(".pagination > select").change(function() {
                $("#frmpaging").submit();
            });
        });
    })(jQuery);
</script>
<div id="container">
    <div id="content">
        <div class="container_medium">
            <h1 class="blue">Dealer list</h1>
            <div class="modelGroup">     
<?php 
                $this->load->view('templates/member/member_list'); 
?> 
<?php
        if($pagination !== '') {                
?>
            <div class="separator"></div>
<?php
            $module = $this->uri->segment(1);
            echo form_open(base_url() . "index.php/" . $module . "/result", array('id' => 'frmpaging')); 
?>
            <input type="hidden" id="offset" name="offset" value="" />
<?php 
            foreach($criteria_list as $criteria) {
?>
            <input type="hidden" name="<?php echo $criteria['field']; ?>" value="<?php echo $criteria['value']; ?>" />
<?php
            }
            echo $pagination;
            echo form_close();
        }            
?>                
            </div>
        </div>
        <div class="quicklink">
<?php 
            $this->load->view('/templates/quicklinks');
?>                        
        </div>
    </div>
</div>    
<div class="separator"></div>